namespace MvcTasks.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class changingalot : DbMigration
    {
        public override void Up()
        {
            RenameTable(name: "dbo.Tasks", newName: "RandomTask");
          //  DropIndex("dbo.Genres", new[] { "MyTasks_ID" });
           // RenameColumn(table: "dbo.RandomTasks", name: "MyTasks_ID", newName: "Genres_Id");
          //  CreateIndex("dbo.RandomTasks", "Genres_Id");
          //  DropColumn("dbo.Genres", "MyTasks_ID");
        }
        
        public override void Down()
        {
           // AddColumn("dbo.Genres", "MyTasks_ID", c => c.Int());
           // DropIndex("dbo.RandomTasks", new[] { "Genres_Id" });
            //RenameColumn(table: "dbo.RandomTasks", name: "Genres_Id", newName: "MyTasks_ID");
          //  CreateIndex("dbo.Genres", "MyTasks_ID");
            RenameTable(name: "dbo.RandomTask", newName: "Tasks");
        }
    }
}
